package cn.schoolwow.util.test.module.query.jsonarray.testcase;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.util.test.module.query.jsonarray.flow.query.*;

public class JSONQueryTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new initialUserListDataJSONArrayFlow())
                .next(new JSONQueryGetOneFlow())
                .next(new JSONQueryListFlow())
                .next(new JSONQuerySingleFieldFlow())
                .next(new JSONQueryNotInQueryFlow())
                .next(new JSONArrayQueryOrderByFieldNameFlow())
                .execute();
    }

    @Override
    public String name() {
        return "JSON-查询测试用例";
    }
}
